package com.runccyy.dao.mapper;

import com.runccyy.dao.model.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    UserPO getById(Long id);

    int insertUser(UserPO user);

    List<UserPO> getByUserIds(@Param("userIds") List<Long> userIds);

    UserPO selectUserByNameAndDepartment(@Param("name")String name, @Param("department")String department);

    UserPO getByOpenId(@Param("openId")String openId);

    void updateUserInfo(UserPO user);
}
